#region usings
using System;
using System.Data;

using CUtil;
using CStock;

#endregion

namespace CStock
{
	/// <summary>
	/// Summary description for IPortfolio.
	/// </summary>
	public interface IPortfolio : IXMLSerializable,IStockObjectBase,ICloneable
	{

       IDataClass GetShareByID(string name);
        IDataItem GetDataItemByID(string name);

        bool TradeSimulationPortfolio { get; set; }
        bool StockTypePortfolio { get; set; }
        string OwnerID { get;set;}
        string Symbol { get; set; }
		double Value_Total{get;set;}
		double Value_TotalUpdate{get;set;}
        double Value_Bonds { get;}
       
        ITradeStep TradeStepPortfolio { get;set;}
		double Performance{get;}

		//double PerformancePerYear{get;}
        

		DataSet DataSet{get;set;}	
		//string NameUpdate{get;set;}	

		bool WriteProtect{get;set;}

        bool FetchIntradayQuotes{ get; set; }
        bool FetchDailyQuotes{ get; set; }	



		IDataItems DataItems{get;set;}

		IDataItem DataItem_Selected{get;set;}
        
		
		System.Collections.ArrayList TradeEvents{get;set;}

		void Refresh();
        bool Serialize_DataClasses();
		void RenamePortfolioDirectory(string oldName,string newName,string sharePath);

		bool ResetTradings();
		bool Reset_Empty();
		

		bool TradeShares(IDataItem dci,DateTime myDate,int oldQantity,int newQantity);
		
		bool RefreshShareData();
		void ReEvaluates();

     

        bool Create_TestData(int numberOfShareValues);
        
        string URL_excelSheet { get;set;}
        string URL_excelSheet_CommaSeparator { get; set; }
        string URL_Overview { get; set; }

	}
}
